<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix = "s" uri ="/struts-tags" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>用户信息</title>
</head>
<body>
   <center>
   <s:debug></s:debug>
   	<h2>学生信息表</h2>
	<table border="1">
		<tr>
			<td width="100">项目名</td>
			<td width="100">姓名</td>
   			<td width="50">性别</td>
   			<td width="50">学院</td>
   			<td width="50">年级</td>
   			<td width="100">技能</td>
   			<td width="50">接受</td>
   			<td width="50">拒绝</td>
   			
   		</tr>
   		
		<s:iterator value="#request.result" id="applyer">
   		<tr>
   		
   			<td width="200"><a href="projectAction!showProject?Pid=<s:property escape="false" value="#applyer[2].pid"/>&status=apply"><s:property value='#applyer[2].name'/></a></td>
 <!-- 方式修改 -->
   			<td><a href="adminAction!showStudent?stuid=<s:property value='#applyer[0].email'/>"><s:property value="#applyer[0].name"/></a></td>
   			<td><s:property value="#applyer[0].sex"></s:property></td>
   			<td><s:property value="#applyer[0].faculty"></s:property></td>
   			<td><s:property value="#applyer[0].grade"></s:property></td>
   			<td><s:property value="#applyer[0].skill"></s:property></td>
   			<td>
   				<s:if test="#applyer[1].relation.equals('applying')">
   					<a href="stuProAction!modifyApplyState?stuID=<s:property value='#applyer[0].email'/>&Pid=<s:property escape="false" value="#applyer[2].pid"/>&relation=yes">接受</a>
   				</s:if>
   				<s:elseif test="#applyer[1].relation.equals('yes')">
   					已接受
   				</s:elseif>
   				
   			</td>
   			<td>
   				<s:if test="#applyer[1].relation.equals('applying')">
   					<a href="stuProAction!modifyApplyState?stuID=<s:property value='#applyer[0].email'/>&Pid=<s:property escape="false" value="#applyer[2].pid"/>&relation=refuse">拒绝</a>
   				</s:if>
   				<s:elseif test="#applyer[1].relation.equals('refuse')">
   					已拒绝
   				</s:elseif>
   			</td>
   			
		</tr>
		
		</s:iterator>
		
		
	</table>
   </center>
</body>
</html>